<nav>
  <ul class="pagination">
    <li *ngIf="this.config.size != 'sm'">
      <a (click)="config.callback(config.currentPage - 1)"
          [class.disabled]="config.currentPage <= 1">
        &laquo;
      </a>
    </li>
    <!--<li><a class="current">1</a></li>-->
    <li *ngFor="let pageItem of pageNoList">
      <a (click)="config.callback(pageItem.pn)"
         [class.current]="pageItem.pn == config.currentPage">
        {{pageItem.text}}
      </a>
    </li>
    <li *ngIf="this.config.size != 'sm'">
      <a (click)="config.callback(config.currentPage + 1)"
          [class.disabled]="config.currentPage >= config.totalPage">
        &raquo;
      </a>
    </li>
  </ul>
</nav>
